#ifndef LOGIN_H
#define LOGIN_H

#include "client_connet.h"

#include <QMainWindow>
#include <QPoint>
#include <QMouseEvent>


QT_BEGIN_NAMESPACE
namespace Ui { class Login; }
QT_END_NAMESPACE

class Login : public QMainWindow
{
    Q_OBJECT

public:
    Login(QWidget *parent = nullptr);
    ~Login();

    bool isPressedWidget;
    QPoint last;
    void mousePressEvent(QMouseEvent *event);//鼠标点击
    void mouseMoveEvent(QMouseEvent *event);//鼠标移动
    void mouseReleaseEvent(QMouseEvent *event);//鼠标释放

    //注册时的id
    void setID(QString id)
    {
        ID = id;
    }
    QString getID()
    {
        return ID;
    }
    void showID();

private slots:

    void on_exit_clicked();

    void on_enroll_clicked();

    void on_login_clicked();

private:
    Ui::Login *ui;
    QString ID;

};
#endif // LOGIN_H
